// 分页组件样式 - 科技感主题
.el-pagination {
  --el-pagination-font-size: 13px;
  --el-pagination-bg-color: transparent;
  --el-pagination-text-color: rgba(255, 255, 255, 0.8);
  --el-pagination-button-color: rgba(255, 255, 255, 0.7);
  --el-pagination-button-bg-color: rgba(0, 90, 160, 0.2);
  --el-pagination-button-disabled-color: rgba(255, 255, 255, 0.3);
  --el-pagination-button-disabled-bg-color: rgba(0, 90, 160, 0.1);
  --el-pagination-hover-color: #ffffff;
  --el-pagination-hover-bg-color: rgba(0, 110, 190, 0.4);
  
  padding: 0;
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: normal;
  font-family: 'PingFang SC', Arial, sans-serif;
  
  // 按钮通用样式
  .btn-prev,
  .btn-next,
  .number,
  .more,
  button {
    margin: 0 2px;
    background: var(--el-pagination-button-bg-color);
    border: 1px solid rgba(0, 170, 255, 0.25);
    color: var(--el-pagination-button-color);
    transition: all 0.3s;
    position: relative;
    overflow: hidden;
    min-width: 32px;
    height: 32px;
    line-height: 32px;
    border-radius: 4px;
    box-shadow: 0 0 5px rgba(0, 150, 255, 0.1);
    
    &::before {
      content: '';
      position: absolute;
      top: 0;
      left: 0;
      width: 100%;
      height: 1px;
      background: linear-gradient(90deg, 
        transparent, 
        rgba(0, 170, 255, 0.5), 
        transparent);
      opacity: 0.5;
    }
    
    &:hover {
      color: var(--el-pagination-hover-color);
      background-color: var(--el-pagination-hover-bg-color);
      border-color: rgba(0, 170, 255, 0.5);
      box-shadow: 0 0 8px rgba(0, 170, 255, 0.3);
      transform: translateY(-1px);
      
      &::after {
        content: '';
        position: absolute;
        left: -100%;
        top: 0;
        width: 100%;
        height: 100%;
        background: linear-gradient(90deg, 
          transparent, 
          rgba(255, 255, 255, 0.2), 
          transparent);
        animation: btn-shine 0.5s forwards;
      }
    }
    
    &:disabled {
      background-color: var(--el-pagination-button-disabled-bg-color);
      color: var(--el-pagination-button-disabled-color);
      border-color: rgba(0, 90, 160, 0.1);
      cursor: not-allowed;
      box-shadow: none;
      
      &:hover {
        transform: none;
      }
    }
  }
  
  // 当前页样式
  .is-active {
    color: #ffffff;
    background: linear-gradient(to right, 
      rgba(0, 64, 128, 0.95), 
      rgba(0, 112, 192, 0.95)
    );
    border-color: rgba(0, 170, 255, 0.5);
    font-weight: 600;
    box-shadow: 
      inset 0 0 8px rgba(0, 210, 255, 0.25),
      0 0 10px rgba(0, 180, 255, 0.3);
    text-shadow: 0 0 3px rgba(0, 210, 255, 0.5);
    position: relative;
    
    &::after {
      content: '';
      position: absolute;
      top: 0;
      left: 0;
      right: 0;
      bottom: 0;
      border-radius: 3px;
      box-shadow: 0 0 8px rgba(0, 210, 255, 0.5);
      animation: pulse 1.5s infinite alternate;
      z-index: -1;
    }
  }
  
  // 省略号样式
  .more {
    .el-icon {
      color: rgba(0, 210, 255, 0.7);
    }
  }
  
  // 分页总数信息
  .el-pagination__total {
    color: rgba(255, 255, 255, 0.7);
    margin-right: 8px;
    font-size: 13px;
  }
  
  // 下拉框样式
  .el-pagination__sizes {
    margin: 0 8px 0 0;
  }
  
  // 页码跳转
  .el-pagination__jump {
    color: rgba(255, 255, 255, 0.7);
    margin-left: 8px;
  }
}

// 小型分页样式
.el-pagination--small {
  .btn-prev,
  .btn-next,
  .number,
  .more {
    min-width: 24px;
    height: 24px;
    line-height: 24px;
    font-size: 12px;
  }
}

// 带背景的分页
.el-pagination.is-background {
  .btn-prev,
  .btn-next,
  .number {
    background: rgba(0, 90, 160, 0.25);
    border-color: rgba(0, 170, 255, 0.2);
    box-shadow: 0 0 6px rgba(0, 150, 255, 0.15);
    
    &:hover:not(.is-disabled) {
      background-color: rgba(0, 110, 190, 0.4);
    }
    
    &.is-disabled {
      background-color: rgba(0, 90, 160, 0.1);
      color: rgba(255, 255, 255, 0.3);
    }
  }
  
  .is-active {
    background: linear-gradient(to right, 
      rgba(0, 64, 128, 0.95), 
      rgba(0, 112, 192, 0.95)
    );
  }
}

// 修复下拉框和分页跳转输入框的样式
.el-select__dropdown.el-popper {
  background: rgba(18, 33, 55, 0.95) !important;
  border: 1px solid rgba(0, 170, 255, 0.3);
  box-shadow: 0 0 15px rgba(0, 150, 220, 0.3);
  backdrop-filter: blur(5px);
  border-radius: 4px;
  
  .el-select-dropdown__item {
    color: rgba(255, 255, 255, 0.8);
    
    &.selected {
      background: rgba(0, 90, 160, 0.4);
      color: #ffffff;
      font-weight: bold;
      text-shadow: 0 0 3px rgba(0, 210, 255, 0.5);
    }
    
    &:hover {
      background: rgba(0, 90, 160, 0.3);
    }
  }
}

// 修复输入框的样式问题
.el-pagination {
  .el-input__wrapper {
    background: rgba(0, 90, 160, 0.2) !important;
    box-shadow: none !important;
    border: 1px solid rgba(0, 170, 255, 0.25) !important;
    border-radius: 4px;
    
    &:hover {
      border-color: rgba(0, 170, 255, 0.5) !important;
    }
    
    &.is-focus {
      border-color: rgba(0, 170, 255, 0.7) !important;
      box-shadow: 0 0 8px rgba(0, 170, 255, 0.3) !important;
    }
    
    .el-input__inner {
      color: rgba(255, 255, 255, 0.9) !important;
      background: transparent !important;
      height: 30px;
    }
  }
  
  // 小型输入框
  &.el-pagination--small .el-input__wrapper {
    height: 24px;
    
    .el-input__inner {
      height: 22px;
    }
  }
  
  // 修复前往多少页边框重复问题
  .el-pagination__editor {
    .el-input__wrapper {
      width: 50px;
    }
  }
  
  // 修复每页条数选择器样式
  .el-pagination__sizes {
    .el-select {
      .el-input {
        width: 100px;
      }
      
      &.el-select--small .el-input {
        width: 80px;
      }
    }
  }
}

// 进一步修复下拉菜单样式
.el-popper.is-light {
  background: rgba(18, 33, 55, 0.95) !important;
  border-color: rgba(0, 170, 255, 0.3) !important;
  box-shadow: 0 0 15px rgba(0, 150, 220, 0.3) !important;
  
  .el-popper__arrow::before {
    background: rgba(18, 33, 55, 0.95) !important;
    border-color: rgba(0, 170, 255, 0.3) !important;
  }
}

// 动画效果
@keyframes pulse {
  0% {
    opacity: 0.3;
    box-shadow: 0 0 4px rgba(0, 210, 255, 0.3);
  }
  100% {
    opacity: 0.8;
    box-shadow: 0 0 8px rgba(0, 210, 255, 0.5);
  }
}

@keyframes btn-shine {
  0% {
    left: -100%;
  }
  100% {
    left: 100%;
  }
}

// 修复深色主题下的样式问题
body.dark {
  .el-pagination {
    .el-input__wrapper {
      background: rgba(10, 25, 45, 0.5) !important;
      border-color: rgba(0, 140, 220, 0.3) !important;
      
      &:hover {
        border-color: rgba(0, 170, 255, 0.6) !important;
      }
      
      &.is-focus {
        border-color: rgba(0, 200, 255, 0.8) !important;
        box-shadow: 0 0 10px rgba(0, 200, 255, 0.4) !important;
      }
    }
  }
  
  .el-popper.is-light,
  .el-select__dropdown.el-popper {
    background: rgba(10, 20, 35, 0.95) !important;
    border-color: rgba(0, 140, 220, 0.4) !important;
    box-shadow: 0 0 20px rgba(0, 140, 220, 0.4) !important;
    
    .el-select-dropdown__item {
      color: rgba(220, 230, 255, 0.85);
      
      &.selected {
        background: rgba(0, 100, 170, 0.5);
        color: #ffffff;
      }
      
      &:hover {
        background: rgba(0, 100, 170, 0.4);
      }
    }
    
    .el-popper__arrow::before {
      background: rgba(10, 20, 35, 0.95) !important;
      border-color: rgba(0, 140, 220, 0.4) !important;
    }
  }
}

// 修复分页器中可能的对齐问题
.el-pagination {
  .el-input {
    vertical-align: middle;
    margin: 0 2px;
  }

  .el-select .el-input {
    vertical-align: top;
  }
  
  // 修复数字可能的位置问题
  &.el-pagination--small .btn-next,
  &.el-pagination--small .btn-prev,
  &.el-pagination--small .number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }
}

:deep(.el-select__wrapper ) {
  background-color: transparent !important;
  box-shadow: none;
  border:1px solid rgba(0, 170, 255, 0.3);
  .el-select__placeholder {
    color: #fff !important;
  }
  .el-select__arrow {
    color: #fff !important;
  }
  
}
